package com.whatech.mall.order.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * RabbitMQ 配置类。
 */
@Configuration
public class RabbitConfig {

    /**
     * 订单队列名
     */
    private final static String ORDER_QUEUE_NAME = "order-queue";

    @Bean
    public Queue orderQueue() {
        return new Queue(ORDER_QUEUE_NAME);
    }

}
